]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Animate sidebars the same duration as windows
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 29 May 2020 08:50:14 +0000 (16:50 +0800)
committerFlorian Müllner <florian.muellner@gmail.com>
Tue, 23 Jun 2020 19:07:30 +0000 (19:07 +0000)
When you tap Super and see the sidebars and windows slide, it looks more
cohesive if those animations complete at the same time.

Previously there were 0.09 seconds difference between the two animations
which was enough to make it look slightly buggy. Now it doesn't.

https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1289

js/ui/overviewControls.js

index 705e8c8d2e2112d5d8e48cd1683700b7e68978dc..9f73408d0c88f531e9380354fc372f0ab07a147e 100644 (file)
@@ -8,8 +8,9 @@ const Main = imports.ui.main;
 const Params = imports.misc.params;
 const ViewSelector = imports.ui.viewSelector;
 const WorkspaceThumbnail = imports.ui.workspaceThumbnail;
+const Overview = imports.ui.overview;
 
-var SIDE_CONTROLS_ANIMATION_TIME = 160;
+var SIDE_CONTROLS_ANIMATION_TIME = Overview.ANIMATION_TIME;
 
 function getRtlSlideDirection(direction, actor) {
     let rtl = actor.text_direction == Clutter.TextDirection.RTL;